const mongoose=require("mongoose")
const Schema=mongoose.Schema;
const logcommentschema=new Schema({
    log:{
        type:Schema.Types.ObjectId,
        ref:"article"
    },
    user:{
        type:Schema.Types.ObjectId,
        ref:"user"
    },
    date:{
        type:Date,
        default: Date.now()
    },
    content:String
})
const logcomment=mongoose.model("logcomment",logcommentschema);
module.exports=logcomment;